package cn.yitun.chat.yitunserverimbase.dao.room;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudDao;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.room.RoomChatContentDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.room.RoomChatContentInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.room.RoomChatContentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 房间聊天内容表
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-05-27 14:43:51
 */
@Mapper
public interface RoomChatContentDao extends CrudDao<RoomChatContentDto, RoomChatContentInfo, RoomChatContentVo> {

	int absDel(Long id);

	int batchAbsDel(Long[] ids);

	/**
	 * 获取聊天内容
	 * @param userNickname
	 * @return
	 */
	List<RoomChatContentVo> queryRoomChatContentList(@Param("userNickname") String userNickname);
}
